<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<title>创建医疗机构</title>

<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jq.js"></script>
<script src="js/admin.js"></script>
</head>
<body>
<div class="panel admin-panel ">
  <div class="panel-head" ><strong class="icon-reorder">创建医疗机构</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="MedicalServlet?method=updateMedical"> 

      <div class="form-group">
        <div class="label">
          <label>医疗机构编码：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50"  value="${lm[0].medicalcode }"  disabled="disabled"  />
          <input type="hidden" class="input w50" name="medicalcode"  value="${lm[0].medicalcode }"   />
          <div class="tips"></div>
        </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>组织机构编码：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="organizationcode" value="${lm[0].organizationcode }"  data-validate="required:请输入组织机构编码"  />
          <div class="tips"></div>
        </div>
      </div>
          
      <div class="form-group">
        <div class="label">
          <label>医疗机构名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="medicalname" value="${lm[0].medicalname }"  data-validate="required:请输入医疗机构名称"  />
          <div class="tips"></div>
        </div>
      </div>
        
      <div class="form-group">
        <div class="label">
          <label>地区编码：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="regioncode" value="${lm[0].regioncode }" data-validate="required:请输入地区编码"  />
          <div class="tips"></div>
        </div>
      </div>  
        
      <div class="form-group">
        <div class="label">
          <label>行政区域编号：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="areacode" value="${lm[0].areacode }"  data-validate="required:请输入行政区域编号"  />
          <div class="tips"></div>
        </div>
      </div>
      
      
      <div class="form-group">
        <div class="label">
          <label>隶属关系：</label>
        </div>
        <div class="field">
          <select name="affiliation" class="input w50">
              <c:forEach items="${ls }" var="s">
              	<c:if test="${s.type==1 }">
              		<c:if test="${s.itemname==lm[0].affiliation }">
              			<option value="${s.itemname}" selected="selected">${s.itemname }</option>
              		</c:if>
              		<option value="${s.itemname}">${s.itemname }</option>
              	</c:if>
              </c:forEach>
            </select>
          </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>机构级别：</label>
        </div>
        <div class="field">
          <select name="grade" class="input w50">
              <c:forEach items="${ls }" var="s">
              	<c:if test="${s.type==2 }">
              		<c:if test="${s.itemname==lm[0].grade }">
              			<option value="${s.itemname}" selected="selected">${s.itemname }</option>
              		</c:if>
              		<option value="${s.itemname}">${s.itemname }</option>
              	</c:if>
              </c:forEach>
            </select>
          </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>申报定点类型：</label>
        </div>
        <div class="field">
          <select name="declaretype" class="input w50">
              <c:forEach items="${ls }" var="s">
              	<c:if test="${s.type==3 }">
              		<c:if test="${s.itemname==lm[0].declaretype }">
              			<option value="${s.itemname}" selected="selected">${s.itemname }</option>
              		</c:if>
              		<option value="${s.itemname}">${s.itemname }</option>
              	</c:if>
              </c:forEach>
            </select>
          </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>批准定点类型：</label>
        </div>
        <div class="field">
          <select name="approvetype" class="input w50">
              <c:forEach items="${ls }" var="s">
              	<c:if test="${s.type==3 }">
              		<c:if test="${s.itemname==lm[0].approvetype }">
              			<option value="${s.itemname}" selected="selected">${s.itemname }</option>
              		</c:if>
              		<option value="${s.itemname}">${s.itemname }</option>
              	</c:if>
              </c:forEach>
            </select>
          </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>机构所属经济类型：</label>
        </div>
        <div class="field">
          <select name="economytype" class="input w50">
              <c:forEach items="${ls }" var="s">
              	<c:if test="${s.type==4 }">
              		<c:if test="${s.itemname==lm[0].economytype }">
              			<option value="${s.itemname}" selected="selected">${s.itemname }</option>
              		</c:if>
              		<option value="${s.itemname}">${s.itemname }</option>
              	</c:if>
              </c:forEach>
            </select>
          </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>卫生机构组织类别：</label>
        </div>
        <div class="field">
          <select name="healthorganization" class="input w50">
              <c:forEach items="${ls }" var="s">
              	<c:if test="${s.type==5 }">
              		<c:if test="${s.itemname==lm[0].healthorganization }">
              			<option value="${s.itemname}" selected="selected">${s.itemname }</option>
              		</c:if>
              		<option value="${s.itemname}">${s.itemname }</option>
              	</c:if>
              </c:forEach>
            </select>
          </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>主办单位：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="sponsorunit" value="${lm[0].sponsorunit }"  data-validate="required:请输入主办单位"  />
          <div class="tips"></div>
        </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>开业、成立时间：</label>
        </div>
        <div class="field">
          <input type="date" class="input w50"  name="establishtime" value="${lm[0].establishtime }"  data-validate="required:请输入开业、成立时间"  />
          <div class="tips"></div>
        </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>负责人：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="charge" value="${lm[0].charge }"  data-validate="required:请输入负责人"  />
          <div class="tips"></div>
        </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>注册资金（万元）：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="registermoney" value="${lm[0].registermoney }"  data-validate="required:请输入注册资金（万元）"  />
          <div class="tips"></div>
        </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
</body>
	
</html>